<div class="title">
  财务信息
 <%= link_to '返回',
      show_finance_order_url(@order),
      :remote => true,
      :method => :get,
        :class => 'crud back'
 %>
</div>
<%= form_for @order,
     :url => update_finance_order_url(@order),
     :remote => true,
     :method => :put do |f|
 %>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">成交总价：</dt>
  <dd class="grid_6 alpha omega"><%= f.text_field :sale_price %></dd>
</dl>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">预交订金：</dt>
  <dd class="grid_6 alpha omega"><%= f.text_field :order_price %></dd>
</dl>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">售后成本：</dt>
  <dd class="grid_6 alpha omega">￥<%= number_with_precision(@order.after_serviced_cost, :precision => 2) %></dd>
</dl>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">订做成本：</dt>
  <dd class="grid_6 alpha omega">￥<%= number_with_precision(@order.how_much, :precision => 2) %></dd>
</dl>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">已收尾款：</dt>
  <dd id="balance_<%= @order.id %>" class="grid_6 alpha omega">￥<%=number_with_precision(@order.gathered_balance, :precision => 2)%></dd>
</dl>
<dl class="grid_7 alpha omega">
  <dt class="grid_6 alpha omega">待收尾款：</dt>
  <dd id="balance_<%= @order.id %>" class="grid_6 alpha omega">￥<%=number_with_precision(@order.balance, :precision => 2)%></dd>
</dl>
<div class="grid_5 form_tool">
<%= f.submit '保存'%>
<%= link_to '返回',
      show_finance_order_url(@order),
      :remote => true,
      :method => :get,
      :class => :button
 %>
</div>
<%end%>